from app.database.connections import db
import MySQLdb


class Machine(db.Model):
    id = db.Column(db.BigInteger, primary_key=True)
    mac_code = db.Column(db.String)
    machine_name = db.Column(db.String)


    def __init__(self,mac_code,machine_name):
        self.mac_code = mac_code
        self.machine_name = machine_name

    def __repr__(self):
        return '<machine: %r,%r,%r>' % (self.id , self.mac_code , self.machine_name)